//
// Created by neo on 10/22/17.
//
#include <stdio.h>


const int  ARRAY_SIZE1 = 10;

typedef struct{
    int a;
    char * b;
} s_simple;

int const size = 10;
typedef struct complex_s {
    float  f;
    int a[20];
    long * lp;
    s_simple s;
    s_simple sa1[10];
    s_simple * sp;
    struct complex_s * sc; //self reference
    struct complex_s * sca[10];
} COMPLEX;


struct align{
    char a;
    int b;
    char c;
};

struct align1{
    int b;
    char a;
    char c;
};

struct align2{
    char a;
    short b;
    int c;
};

struct align3{
    char a;
    int c;
    short b;
};

void complex_struct(){
    printf("%d\n", sizeof(struct align));
    printf("%d\n", sizeof(struct align1));
    printf("%d\n", sizeof(struct align2));
    printf("%d\n", sizeof(struct align3));

}




int main_struct1(int argc, char ** argv){
    printf("Hello struct\n");
    complex_struct();

}